package com.wuchao.springs.aoppromax;

import com.wuchao.springs.iocpromax.Gril;
import com.wuchao.springs.iocpromax.Users;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Arrays;

/**
 * @Author wuchao66
 * @Date 2023/10/12 9:18
 * @PackageName:com.wuchao.springs.ioc
 * @ClassName: T
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
public class T {
    public static void main(String[] args) {
//        String name="";
        ClassPathXmlApplicationContext cpac =
                new ClassPathXmlApplicationContext("ApplicationContextPro.xml");
        //装箱 拆箱 object--int
        ((ShowEntry) cpac.getBean("showEntry")).show();
      Arrays.asList(cpac.getBeanDefinitionNames()).forEach(xjj-> System.out.println(xjj));

        ((Point) cpac.getBean("point")).show();

    }
}
